package com.hu.hutool.Clone;

import cn.hutool.core.clone.CloneSupport;
import lombok.Data;

/**
 * @Author CazCen
 * @Date 2021/10/12 21:36
 */

/**
 * 泛型克隆类：继承 CloneSupport<T> 即可实现类的克隆
 * 实例见测试类 UserCloneSupportTest
 * 实现Cloneable接口后克隆的对象是浅克隆
 */
@Data
public class UserCloneSupport extends CloneSupport<UserCloneSupport> {
    private String name = "cazcen";
    private Integer age = 30;
}
